﻿using AutoMapper;
using Management.Systeam.Domaina;
using Management.Systeam.Read.Apis.Application.Command.DepartMentes;
using Management.Systeam.Read.Apis.Application.Command.ProductOutAllows;
using Management.Systeam.Read.Apis.Application.Command.Resourceses;
using Management.Systeam.Read.Apis.Application.Command.Rolees;
using Management.Systeam.Read.Apis.Application.Command.Useres;

namespace Management.Systeam.Read.Apis.Auto.UserDto
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
            CreateMap<AddUserCommand,Users >().ReverseMap();
            CreateMap<UpdateUserCommand,Users >().ReverseMap();

            CreateMap<AddRoleCommand, Role>().ReverseMap();
            CreateMap<UpdateRoleCommand, Role>().ReverseMap();

            CreateMap<AddDepartMentesCommand, DepartMents>().ReverseMap();
            CreateMap<UpdateDepartMentCommand, DepartMents>().ReverseMap();

            CreateMap<AddResourcesesCommand, Resources>().ReverseMap();
            CreateMap<UpdateResourcesCommand, Resources>().ReverseMap();

            CreateMap<AddProductOutAllowCommand, ProductOutAllow>().ReverseMap();
        }
    }
}
